package com.novunda.platform.common.utils;

import com.google.common.collect.Lists;
import com.novunda.platform.entities.Role;

import java.util.List;

/**
 * @author linfeng
 * @since 2016/9/21.
 */
public final class PlatformUtils {

    private PlatformUtils() {
    }

    public static List<Long> convertRoleList2Id(List<Role> roleList) {
        List<Long> roleIdList = Lists.newArrayList();
        for (Role role: roleList) {
            roleIdList.add(role.getId());
        }
        return roleIdList;
    }


}
